Filters
Question type

Study Flashcards

A Developer is creating a mobile application with a limited budget. The solution requires a scalable service that will enable customers to sign up and authenticate into the mobile application while using the organization's current SAML 2.0 identity provider. Which AWS service should be used to meet these requirements?


A) AWS Lambda
B) Amazon Cognito
C) AWS IAM
D) Amazon EC2

E) A) and C)
F) A) and B)

Correct Answer

verifed

verified

Which of the following is chosen as the default region when making an API call with an AWS SDK?


A) ap-northeast-1
B) us-west-2
C) us-east-1
D) eu-west-1
E) us-central-1

F) B) and C)
G) C) and E)

Correct Answer

verifed

verified

A company is planning to deploy an application on AWS behind an Elastic Load Balancer. The application uses an HTTP/HTTPS listener and must access the client IP addresses. Which load-balancing solution meets these requirements?


A) Use an Application Load Balancer and the X-Forwarded-For headers.
B) Use a Network Load Balancer (NLB) . Enable proxy protocol support on the NLB and the target application.
C) Use an Application Load Balancer. Register the targets by the instance ID.
D) Use a Network Load Balancer and the X-Forwarded-For headers.

E) All of the above
F) C) and D)

Correct Answer

verifed

verified

While developing an application that runs on Amazon EC2 in an Amazon VPC, a Developer identifies the need for centralized storage of application-level logs. Which AWS service can be used to securely store these logs?


A) Amazon EC2 VPC Flow Logs
B) Amazon CloudWatch Logs
C) Amazon CloudSearch
D) AWS CloudTrail

E) B) and D)
F) A) and B)

Correct Answer

verifed

verified

An on-premises application makes repeated calls to store files to Amazon S3. As usage of the application has increased, "LimitExceeded" errors are being logged. What should be changed to fix this error?


A) Implement exponential backoffs in the application.
B) Load balance the application to multiple servers.
C) Move the application to Amazon EC2.
D) Add a one second delay to each API call.

E) B) and C)
F) A) and C)

Correct Answer

verifed

verified

A Development team has pushed out 10 applications running on several Amazon EC2 instances. The Operations team is asking for a graphical representation of one key performance metric for each application. These metrics should be available on one screen for easy monitoring. Which steps should the Developer take to accomplish this using Amazon CloudWatch?


A) Create a custom namespace with a unique metric name for each application.
B) Create a custom dimension with a unique metric name for each application.
C) Create a custom event with a unique metric name for each application.
D) Create a custom alarm with a unique metric name for each application.

E) A) and D)
F) All of the above

Correct Answer

verifed

verified

A company wants to implement a continuous integration for its workloads on AWS. The company wants to trigger unit test in its pipeline for commits-on its code repository, and wants to be notified of failure events in the pipeline. How can these requirements be met?


A) Store the source code in AWS CodeCommit. Create a CodePipeline to automate unit testing. Use Amazon SNS to trigger notifications of failure events.
B) Store the source code in GitHub. Create a CodePipeline to automate unit testing. Use Amazon SES to trigger notifications of failure events.
C) Store the source code on GitHub. Create a CodePipeline to automate unit testing. Use Amazon CloudWatch to trigger notifications of failure events.
D) Store the source code in AWS CodeCommit. Create a CodePipeline to automate unit testing. Use Amazon CloudWatch to trigger notification of failure events.

E) C) and D)
F) B) and C)

Correct Answer

verifed

verified

A Developer wants the ability to roll back to a previous version of an AWS Lambda function in the event of errors caused by a new deployment. How can the Developer achieve this with MINIMAL impact on users?


A) Change the application to use an alias that points to the current version. Deploy the new version of the code. Update the alias to use the newly deployed version. If too many errors are encountered, point the alias back to the previous version.
B) Change the application to use an alias that points to the current version. Deploy the new version of the code. Update the alias to direct 10% of users to the newly deployed version. If too many errors are encountered, send 100% of traffic to the previous version.
C) Do not make any changes to the application. Deploy the new version of the code. If too many errors are encountered, point the application back to the previous version using the version number in the Amazon Resource Name (ARN) .
D) Create three aliases: new, existing, and router. Point the existing alias to the current version. Have the router alias direct 100% of users to the existing alias. Update the application to use the router alias. Deploy the new version of the code. Point the new alias to this version. Update the router alias to direct 10% of users to the new alias. If too many errors are encountered, send 100% of traffic to the existing alias.

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

A company is migrating a single-server, on-premises web application to AWS. The company intends to use multiple servers behind an Elastic Load Balancer (ELB) to balance the load, and will also store session data in memory on the web server. The company does not want to lose that session data if a server fails or goes offline, and it wants to minimize user's downtime. Where should the company move session data to MOST effectively reduce downtime and make users' session data more fault tolerant?


A) An Amazon ElastiCache for Redis cluster
B) A second Amazon EBS volume
C) The web server's primary disk
D) An Amazon EC2 instance dedicated to session data

E) None of the above
F) C) and D)

Correct Answer

verifed

verified

A company has an Amazon S3 bucket containing premier content that it intends to make available to only paid subscribers of its website. The S3 bucket currently has default permissions of all objects being private to prevent inadvertent exposure of the premier content to non-paying website visitors. How can the company limit the ability to download a premier content file in the S3 bucket to paid subscribers only?


A) Apply a bucket policy that allows anonymous users to download the content from the S3 bucket.
B) Generate a pre-signed object URL for the premier content file when a paid subscriber requests a download.
C) Add a bucket policy that requires multi-factor authentication for requests to access the S3 bucket objects.
D) Enable server-side encryption on the S3 bucket for data protection against the non-paying website visitors.

E) None of the above
F) A) and B)

Correct Answer

verifed

verified

A company is running a custom application on a set of on-premises Linux servers that are accessed using Amazon API Gateway AWS X-Ray tracing has been enabled on the API test stage. How can a developer enable X-Ray tracing on the on-premises servers with the LEAST amount of configuration?


A) Install and run the X-Ray SDK on the on-premises servers to capture and relay the data to the X-Ray service.
B) Install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service.
C) Capture incoming requests on-premises and configure an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTraceSegments API call.
D) Capture incoming requests on-premises and configure an AWS Lambda function to pull, process, and relay relevant data to X-Ray using the PutTelemetryRecords API call.

E) A) and B)
F) B) and C)

Correct Answer

verifed

verified

Which of the following statements about SQS is true?


A) Messages will be delivered exactly once and messages will be delivered in First in, First out order
B) Messages will be delivered exactly once and message delivery order is indeterminate
C) Messages will be delivered one or more times and messages will be delivered in First in, First out order
D) Messages will be delivered one or more times and message delivery order is indeterminate

E) B) and D)
F) A) and B)

Correct Answer

verifed

verified

What AWS products and features can be deployed by Elastic Beanstalk? (Choose three.)


A) Auto scaling groups
B) Route 53 hosted zones
C) Elastic Load Balancers
D) RDS Instances
E) Elastic IP addresses
F) SQS Queues

G) D) and E)
H) E) and F)

Correct Answer

verifed

verified

A company wants to migrate an imaging service to Amazon EC2 while following security best practices. The images are sourced and read from a non-public Amazon S3 bucket. What should a Developer do to meet these requirements?


A) Create an IAM user with read-only permissions for the S3 bucket. Temporarily store the user credentials in the Amazon EBS volume of the EC2 instance.
B) Create an IAM user with read-only permissions for the S3 bucket. Temporarily store the user credentials in the user data of the EC2 instance.
C) Create an EC2 service role with read-only permissions for the S3 bucket. Attach the role to the EC2 instance.
D) Create an S3 service role with read-only permissions for the S3 bucket. Attach the role to the EC2 instance.

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

A stock market monitoring application uses Amazon Kinesis for data ingestion. During simulated tests of peak data rates, the Kinesis stream cannot keep up with the incoming data. What step will allow Kinesis to accommodate the traffic during peak hours?


A) Install the Kinesis Producer Library (KPL) for ingesting data into the stream.
B) Reduce the data retention period to allow for more data ingestion using DecreaseStreamRetentionPeriod . Reduce the data retention period to allow for more data ingestion using DecreaseStreamRetentionPeriod .
C) Increase the shard count of the stream using UpdateShardCount . Increase the shard count of the stream using UpdateShardCount
D) Ingest multiple records into the stream in a single call using PutRecords . Ingest multiple records into the stream in a single call using PutRecords

E) A) and C)
F) A) and D)

Correct Answer

verifed

verified

A developer receives the following error message when trying to launch or terminate an Amazon EC2 instance using a boto3 script. A developer receives the following error message when trying to launch or terminate an Amazon EC2 instance using a boto3 script.   What should the developer do to correct this error message? A)  Assign an IAM role to the EC2 instance to allow necessary API calls on behalf of the client. B)  Implement an exponential backoff algorithm for optimizing the number of API requests made to Amazon EC2. C)  Increase the overall network bandwidth to handle higher API request rates. D)  Upgrade to the latest AWS CLI version so that boto3 can handle higher request rates. What should the developer do to correct this error message?


A) Assign an IAM role to the EC2 instance to allow necessary API calls on behalf of the client.
B) Implement an exponential backoff algorithm for optimizing the number of API requests made to Amazon EC2.
C) Increase the overall network bandwidth to handle higher API request rates.
D) Upgrade to the latest AWS CLI version so that boto3 can handle higher request rates.

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

An application reads data from an Amazon DynamoDB table. Several times a day, for a period of 15 seconds, the application receives multiple ProvisionedThroughputExceeded errors. How should this exception be handled?


A) Create a new global secondary index for the table to help with the additional requests.
B) Retry the failed read requests with exponential backoff.
C) Immediately retry the failed read requests.
D) Use the DynamoDB "UpdateItem" API to increase the provisioned throughput capacity of the table.

E) B) and D)
F) All of the above

Correct Answer

verifed

verified

A current architecture uses many Lambda functions invoking one another as large state machine. The coordination of this state machine is legacy custom code that breaks easily. Which AWS Service can help refactor and manage the state machine?


A) AWS Data Pipeline
B) AWS SNS with AWS SQS
C) Amazon Elastic MapReduce
D) AWS Step Functions

E) B) and C)
F) All of the above

Correct Answer

verifed

verified

A Developer wants to insert a record into an Amazon DynamoDB table as soon as a new file is added to an Amazon S3 bucket. Which set of steps would be necessary to achieve this?


A) Create an event with Amazon CloudWatch Events that will monitor the S3 bucket and then insert the records into DynamoDB.
B) Configure an S3 event to invoke a Lambda function that inserts records into DynamoDB.
C) Create a Lambda function that will poll the S3 bucket and then insert the records into DynamoDB.
D) Create a cron job that will run at a scheduled time and insert the records into DynamoDB.

E) A) and C)
F) A) and B)

Correct Answer

verifed

verified

A company has an application that runs on AWS Lambda@Edge. The application serves content that varies based on the device that the viewer is using. Information about the number of hits by device type is written to logs that are stored in a log group in Amazon CloudWatch Logs. The company needs to publish an Amazon CloudWatch custom metric for each device type. Which approach will meet these requirements?


A) Create a CloudWatch Logs Insights query to extract the device type information from the logs and to create a custom metric with device type as a dimension.
B) Create a CloudWatch metric filter to extract metrics from the log files with device type as a dimension.
C) Update the application to write its logs in the CloudWatch embedded metric format with device type as a dimension.
D) Configure the CloudWatch Logs agent for Lambda integration. Update the application to use the StatsD protocol to emit the metrics.

E) A) and B)
F) All of the above

Correct Answer

verifed

verified

Showing 201 - 220 of 470

Related Exams

Show Answer