Select the correct answers for each question, including multiple-choice options when applicable, and click Submit to view your results. The quiz calculates your score and percentage, highlighting any incorrect questions to help you identify areas for improvement.
Click on the Answer button for the correct answer and its explanation.
If this practice exam has been helpful to you please share it with others and react to this below.
Practice Exam 5
-
You run an ad-supported photo sharing website using S3 to serve photos to visitors of your site. At some point you find out that other sites have been linking to the photos on your site, causing loss to your business. What is an effective method to mitigate this?
- A. Store photos on an EBS volume of the web server.
- B. Remove public read access and use signed URLs with expiry dates.
- C. Use CloudFront distributions for static content.
- D. Block the IPs of the offending websites in Security Groups.
Answer
Correct Answer: B
-
Which statements about DynamoDB are true? (Choose TWO)
- A. DynamoDB uses a pessimistic locking model.
- B. DynamoDB uses optimistic concurrency control.
- C. DynamoDB uses conditional writes for consistency.
- D. DynamoDB restricts item access during reads.
- E. DynamoDB restricts item access during writes.
Answer
Correct Answer: BC
-
You are providing AWS consulting services for a company developing a new mobile application that will be leveraging Amazon SNS Mobile Push for push notifications. In order to send direct notification messages to individual devices each device registration identifier or token needs to be registered with SNS; however the developers are not sure of the best way to do this. You advise them to:
- A. Bulk upload the device tokens contained in a CSV file via the AWS Management Console.
- B. Let the push notification service (e.g. Amazon Device Messaging) handle the registration.
- C. Implement a token vending service to handle the registration.
- D. Call the
CreatePlatformEndPointAPI function to register multiple device tokens.
Answer
Correct Answer: D
-
You are writing to a DynamoDB table and receive the following exception:
ProvisionedThroughputExceededException. though according to your Cloudwatch metrics for the table, you are not exceeding your provisioned throughput. What could be an explanation for this?- A. You haven’t provisioned enough DynamoDB storage instances.
- B. You’re exceeding your capacity on a particular
Range Key. - C. You’re exceeding your capacity on a particular
Hash Key. - D. You’re exceeding your capacity on a particular
Sort Key. - E. You haven’t configured DynamoDB Auto Scaling triggers.
Answer
Correct Answer: C
-
If an application is storing hourly log files from thousands of instances from a high traffic web site, which naming scheme would give optimal performance on S3?
- A. Sequential.
- B.
instanceID_log-HH-DD-MM-YYYY. - C.
instanceIDLog-YYYY-MM-DD-HH. - D.
HH-DD-MM-YYYY-log_instanceID. - E.
YYYY-MM-DD-HH-logInstanceID.
Answer
Correct Answer: B
-
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.
Answer
Correct Answer: D
-
A corporate web application is deployed within an Amazon VPC, and is connected to the corporate data center via IPSec VPN. The application must authenticate against the on-premise LDAP server. Once authenticated, logged-in users can only access an S3 keyspace specific to the user. Which two approaches can satisfy the objectives? (Choose TWO)
- A. The application authenticates against LDAP. The application then calls the IAM Security Service to login to IAM using the LDAP credentials. The application can use the 1AM temporary credentials to access the appropriate S3 bucket.
- B. The application authenticates against LDAP, and retrieves the name of an IAM role associated with the user. The application then calls the IAM Security Token Service to assume that IAM Role. The application can use the temporary credentials to access the appropriate S3 bucket.
- C. The application authenticates against IAM Security Token Service using the LDAP credentials. The application uses those temporary AWS security credentials to access the appropriate S3 bucket.
- D. Develop an identity broker which authenticates against LDAP, and then calls IAM Security Token Service to get IAM federated user credentials. The application calls the identity broker to get IAM federated user credentials with access to the appropriate S3 bucket.
- E. Develop an identity broker which authenticates against IAM Security Token Service to assume an IAM Role to get temporary AWS security credentials. The application calls the identity broker to get AWS temporary security credentials with access to the appropriate S3 bucket.
Answer
Correct Answer: BD
-
Company C is currently hosting their corporate site in an Amazon S3 bucket with Static Website Hosting enabled. Currently, when visitors go to
http://www.companyc.comtheindex.htmlpage is returned. Company C now would like a new page welcome.html to be returned when a visitor entershttp://www.companyc.comin the browser. Which of the following steps will allow Company C to meet this requirement? (Choose TWO)- A. Upload an html page named welcome.html to their S3 bucket.
- B. Create a welcome subfolder in their S3 bucket.
- C. Set the Index Document property to welcome.html.
- D. Move the
index.htmlpage to a welcome subfolder. - E. Set the Error Document property to welcome.html.
Answer
Correct Answer: AC
-
What type of block cipher does Amazon S3 offer for server side encryption?
- A. Triple DES.
- B. Advanced Encryption Standard.
- C. Blowfish.
- D. RC5.
Answer
Correct Answer: B
-
A Development team wants to instrument their code to provide more detailed information to AWS X-Ray than simple outgoing and incoming requests. This will generate large amounts of data, so the Development team wants to implement indexing so they can filter the data. What should the Development team do to achieve this?
- A. Add annotations to the segment document and the code.
- B. Add metadata to the segment document and the code.
- C. Configure the necessary X-Ray environment variables.
- D. Install required plugins for the appropriate AWS SDK.
Answer
Correct Answer: A
-
A team of Developers must migrate an application running inside an AWS Elastic Beanstalk environment from a Classic Load Balancer to an Application Load Balancer. Which steps should be taken to accomplish the task using the AWS Management Console?
- A. 1. Update the application code in the existing deployment. 2. Select a new load balancer type before running the deployment. 3. Deploy the new version of the application code to the environment.
- B. 1. Create a new environment with the same configurations except for the load balancer type. 2. Deploy the same application version as used in the original environment. 3. Run the
swap-environment-cnamesaction. - C. 1. Clone the existing environment, changing the associated load balancer type. 2. Deploy the same application version as used in the original environment. 3. Run the
swap-environment-cnamesaction. - D. 1. Edit the environment definitions in the existing deployment. 2. Change the associated load balancer type according to the requirements. 3. Rebuild the environment with the new load balancer type.
Answer
Correct Answer: A
-
A company needs a version control system for collaborative software development. Features of the system must include the following: Support for batches of changes across multiple files. Parallel branching Version tracking. Which AWS service will meet these requirements?
- A. AWS CodePipeline.
- B. Amazon S3.
- C. AWS Code Build.
- D. AWS CodeCommit.
Answer
Correct Answer: D
-
A company is using continuous integration and continuous delivery systems. A Developer now needs to automate a software package deployment to both Amazon EC2 instances and virtual servers running on-premises. Which AWS service should be used to accomplish this?
- A. AWS CodePipeline.
- B. AWS CodeBuild.
- C. AWS Elastic Beanstalk.
- D. AWS CodeDeploy.
Answer
Correct Answer: D
-
A Developer created a new AWS account and must create a scalable AWS Lambda function that meets the following requirements for concurrent execution: Average execution time of 100 seconds 50 requests per second. Which step must be taken prior to deployment to prevent errors?
- A. Implement dead-letter queues to capture invocation errors.
- B. Add an event source from Amazon API Gateway to the Lambda function.
- C. Implement error handling within the application code.
- D. Contact AWS Support to increase the concurrent execution limits.
Answer
Correct Answer: D
-
A Developer is building a three-tier web application that should be able to handle a minimum of 5000 requests per minute. Requirements state that the web tier should be completely stateless while the application maintains session state for the users. How can session data be externalized, keeping latency at the LOWEST possible value?
- A. Create an Amazon RDS instance, then implement session handling at the application level to leverage a database inside the RDS database instance for session data storage.
- B. Implement a shared file system solution across the underlying Amazon EC2 instances, then implement session handling at the application level to leverage the shared file system for session data storage.
- C. Create an Amazon ElastiCache Memcached cluster, then implement session handling at the application level to leverage the cluster for session data storage.
- D. Create an Amazon DynamoDB table, then implement session handling at the application level to leverage the table for session data storage.
Answer
Correct Answer: C
-
An Amazon DynamoDB table uses a Global Secondary Index (GSI) to support read queries. The primary table is write-heavy, whereas the GSI is used for read operations. Looking at Amazon CloudWatch metrics, the Developer notices that write operations to the primary table are throttled frequently under heavy write activity. However, write capacity units to the primary table are available and not fully consumed. Why is the table being throttled?
- A. The GSI write capacity units are underprovisioned.
- B. There are not enough read capacity units on the primary table.
- C. Amazon DynamoDB Streams is not enabled on the table.
- D. A large write operation is being performed against another table.
Answer
Correct Answer: A
-
A company runs an e-commerce website that uses Amazon DynamoDB where pricing for items is dynamically updated in real time. At any given time, multiple updates may occur simultaneously for pricing information on a particular product. This is causing the original editor’s changes to be overwritten without a proper review process. Which DynamoDB write option should be selected to prevent this overwriting?
- A. Concurrent writes.
- B. Conditional writes.
- C. Atomic writes.
- D. Batch writes.
Answer
Correct Answer: B
-
A Developer has been asked to create an AWS Lambda function that is triggered any time updates are made to items in an Amazon DynamoDB table. The function has been created, and appropriate permissions have been added to the Lambda execution role. Amazon DynamoDB streams have been enabled for the table, but the function is still not being triggered. Which option would enable DynamoDB table updates to trigger the Lambda function?
- A. Change the
StreamViewTypeparameter value toNEW_AND_OLD_IMAGESfor the DynamoDB table. - B. Configure event source mapping for the Lambda function.
- C. Map an Amazon SNS topic to the DynamoDB streams.
- D. Increase the maximum execution time (timeout) setting of the Lambda function.
Answer
Correct Answer: B
- A. Change the
-
A company is running a Docker application on Amazon ECS. The application must scale based on user load in the last 15 seconds. How should a Developer instrument the code so that the requirement can be met?
- A. Create a high-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 30 seconds.
- B. Create a high-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 5 seconds.
- C. Create a standard-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 30 seconds.
- D. Create a standard-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 5 seconds.
Answer
Correct Answer: B
-
A company needs to ingest terabytes of data each hour from thousands of sources that are delivered almost continually throughout the day. The volume of messages generated varies over the course of the day. Messages must be delivered in real time for fraud detection and live operational dashboards. Which approach will meet these requirements?
- A. Send the messages to an Amazon SQS queue, then process the messages by using a fleet of Amazon EC2 instances.
- B. Use the Amazon S3 API to write messages to an S3 bucket, then process the messages by using Amazon Redshift.
- C. Use AWS Data Pipeline to automate the movement and transformation of data.
- D. Use Amazon Kinesis Data Streams with Kinesis Client Library to ingest and deliver messages.
Answer
Correct Answer: D
-
A Developer accesses AWS CodeCommit over SSH. The SSH keys configured to access AWS CodeCommit are tied to a user with the following permissions. The Developer needs to create/delete branches. Which specific IAM permissions need to be added, based on the principle of least privilege?

- A.
"codecommit:CreateBranch" "codecommit:DeleteBranch". - B.
"codecommit:Put*". - C.
"codecommit:Update*". - D.
"codecommit:*".
Answer
Correct Answer: A - A.
-
An AWS Lambda function must access an external site by using a regularly rotated user name and password. These items must be kept securely and cannot be stored in the function code. What combination of AWS services can be used to accomplish this? (Choose TWO)
- A. AWS Certificate Manager (ACM).
- B. AWS Systems Manager Parameter Store.
- C. AWS Trusted Advisor.
- D. AWS KMS.
- E. Amazon GuardDuty.
Answer
Correct Answer: BD
-
A Developer is trying to deploy a serverless application using AWS CodeDeploy. The application was updated and needs to be redeployed. What file does the Developer need to update to push that change through CodeDeploy?
- A.
dockerrun.aws.json. - B.
buildspec.yml. - C.
appspec.yml. - D.
ebextensions.config.
Answer
Correct Answer: C
- A.
-
A Developer is working on an application that handles 10MB documents that contain highly-sensitive data. The application will use AWS KMS to perform clientside encryption. What steps must be followed?
- A. Invoke the Encrypt API passing the plaintext data that must be encrypted, then reference the customer managed key ARN in the
KeyIdparameter. - B. Invoke the
GenerateRandomAPI to get a data encryption key, then use the data encryption key to encrypt the data. - C. Invoke the
GenerateDataKeyAPI to retrieve the encrypted version of the data encryption key to encrypt the data. - D. Invoke the
GenerateDataKeyAPI to retrieve the plaintext version of the data encryption key to encrypt the data.
Answer
Correct Answer: D
- A. Invoke the Encrypt API passing the plaintext data that must be encrypted, then reference the customer managed key ARN in the
-
A Developer is building a web application that uses Amazon API Gateway to expose an AWS Lambda function to process requests from clients. During testing, the Developer notices that the API Gateway times out even though the Lambda function finishes under the set time limit. Which of the following API Gateway metrics in Amazon CloudWatch can help the Developer troubleshoot the issue? (Choose TWO)
- A. CacheHitCount.
- B. IntegrationLatency.
- C. CacheMissCount.
- D. Latency.
- E. Count.
Answer
Correct Answer: BD
-
A company needs to distribute firmware updates to its customers around the world. Which service will allow easy and secure control of the access to the downloads at the lowest cost?
- A. Use Amazon CloudFront with signed URLs for Amazon S3.
- B. Create a dedicated Amazon CloudFront Distribution for each customer.
- C. Use Amazon CloudFront with AWS Lambda@Edge.
- D. Use Amazon API Gateway and AWS Lambda to control access to an S3 bucket.
Answer
Correct Answer: A
-
An application writes items to an Amazon DynamoDB table. As the application scales to thousands of instances, calls to the DynamoDB API generate occasional
ThrottlingExceptionerrors. The application is coded in a language incompatible with the AWS SDK. How should the error be handled?- A. Add exponential backoff to the application logic.
- B. Use Amazon SQS as an API message bus.
- C. Pass API calls through Amazon API Gateway.
- D. Send the items to DynamoDB through Amazon Kinesis Data Firehose.
Answer
Correct Answer: A
-
An e-commerce web application that shares session state on-premises is being migrated to AWS. The application must be fault tolerant, natively highly scalable, and any service interruption should not affect the user experience. What is the best option to store the session state?
- A. Store the session state in Amazon ElastiCache.
- B. Store the session state in Amazon CloudFront.
- C. Store the session state in Amazon S3.
- D. Enable session stickiness using elastic load balancers.
Answer
Correct Answer: A
-
A Developer is creating a template that uses AWS CloudFormation to deploy an application. This application is serverless and uses Amazon API Gateway, Amazon DynamoDB, and AWS Lambda. Which tool should the Developer use to define simplified syntax for expressing serverless resources?
- A. CloudFormation serverless intrinsic functions.
- B. AWS serverless express.
- C. An AWS serverless application model.
- D. A CloudFormation serverless plugin.
Answer
Correct Answer: C
-
A Developer has a stateful web server on-premises that is being migrated to AWS. The Developer must have greater elasticity in the new design. How should the Developer re-factor the application to make it more elastic? (Choose TWO)
- A. Use pessimistic concurrency on Amazon DynamoDB.
- B. Use Amazon CloudFront with an Auto Scaling group.
- C. Use Amazon CloudFront with an AWS Web Application Firewall.
- D. Store session state data in an Amazon DynamoDB table.
- E. Use an ELB with an Auto Scaling group.
Answer
Correct Answer: DE
-
A Developer must analyze performance issues with production-distributed applications written as AWS Lambda functions. These distributed Lambda applications invoke other components that make up the applications. How should the Developer identify and troubleshoot the root cause of the performance issues in production?
- A. Add logging statements to the Lambda functions, then use Amazon CloudWatch to view the logs.
- B. Use AWS Cloud Trail and then examine the logs.
- C. Use AWS X-Ray, then examine the segments and errors.
- D. Run Amazon Inspector agents and then analyze performance.
Answer
Correct Answer: C
-
A Developer wants to debug an application by searching and filtering log data. The application logs are stored in Amazon CloudWatch Logs. The Developer creates a new metric filter to count exceptions in the application logs. However, no results are returned from the logs. What is the reason that no filtered results are being returned?
- A. A setup of the Amazon CloudWatch interface VPC endpoint is required for filtering the CloudWatch Logs in the VPC.
- B. CloudWatch Logs only publishes metric data for events that happen after the filter is created.
- C. The log group for CloudWatch Logs should be first streamed to Amazon Elasticsearch Service before metric filtering returns the results.
- D. Metric data points for logs groups can be filtered only after they are exported to an Amazon S3 bucket.
Answer
Correct Answer: B
-
To include objects defined by the AWS Serverless Application Model (SAM) in an AWS CloudFormation template, in addition to
Resources, what section MUST be included in the document root?- A.
Conditions. - B.
Globals. - C.
Transform. - D.
Properties.
Answer
Correct Answer: C
- A.
-
A company is using Amazon RDS MySQL instances for its application database tier and Apache Tomcat servers for its web tier. Most of the database queries from web applications are repeated read requests. Use of which AWS service would increase in performance by adding in-memory store for repeated read queries?
- A. Amazon RDS Multi-AZ.
- B. Amazon SQS.
- C. Amazon ElastiCache.
- D. Amazon RDS read replica.
Answer
Correct Answer: C
-
A Developer is investigating an issue whereby certain requests are passing through an Amazon API Gateway endpoint /MyAPI, but the requests do not reach the AWS Lambda function backing /MyAPI. The Developer found that a second Lambda function sometimes runs at maximum concurrency allowed for the given AWS account. How can the Developer address this issue?
- A. Manually reduce the concurrent execution limit at the account level.
- B. Add another API Gateway stage for /MyAPI, and shard the requests.
- C. Configure the second Lambda function’s concurrency execution limit.
- D. Reduce the throttling limits in the API Gateway /MyAPI endpoint
Answer
Correct Answer: C
-
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.
Answer
Correct Answer: A
-
A Developer created configuration specifications for an AWS Elastic Beanstalk application in a file named healthcheckurl.yaml in the
.ebextensions/directoryof their application source bundle. The file contains the following: After the application launches, the health check is not being run on the correct path, even though it is valid. What can be done to correct this configuration file?
- A. Convert the file to JSON format.
- B. Rename the file to a
.configextension. - C. Change the configuration section from
options_settingsto resources. - D. Change the namespace of the option settings to a custom namespace.
Answer
Correct Answer: B -
A Developer has created a Lambda function and is finding that the function is taking longer to complete than expected. After some debugging, the Developer has discovered that increasing compute capacity would improve performance. How can the Developer increase the Lambda compute resources?
- A. Run on a larger instance size with more compute capacity.
- B. Increase the maximum execution time.
- C. Specify a larger compute capacity when calling the Lambda function.
- D. Increase the allocated memory for the Lambda function.
Answer
Correct Answer: D
-
An e-commerce site allows returning users to log in to display customized web pages. The workflow is shown in the image below. An application is running on EC2 instances. Amazon RDS is used for the database that stores user accounts and preferences. The website freezes or is slow to load while waiting for the login step to complete. The remaining components of the site are well-optimized. Which of the following techniques will resolve this issue? (Select TWO)

- A. Implement the user login page as an asynchronous Lambda function.
- B. Use Amazon ElastiCache for MemCached to cache user data.
- C. Use Amazon Application Load Balancer to load balance the traffic to the website.
- D. Call the database asynchronously so the code can continue executing. - E. Batch login requests from hundreds of users together as a single read request to the database.
Answer
Correct Answer: BD -
A Developer is building a mobile application and needs any update to user profile data to be pushed to all devices accessing the specific identity. The Developer does not want to manage a back end to maintain the user profile data. What is the MOST efficient way for the Developer to achieve these requirements using Amazon Cognito?
- A. Use Cognito federated identities.
- B. Use a Cognito user pool.
- C. Use Cognito Sync.
- D. Use Cognito events.
Answer
Correct Answer: C
-
A company maintains a REST service using Amazon API Gateway and the API Gateway native API key validation. The company recently launched a new registration page, which allows users to sign up for the service. The registration page creates a new API key using
CreateApiKeyand sends the new key to the user. When the user attempts to call the API using this key, the user receives a403 Forbiddenerror. Existing users are unaffected and can still call the API. What code updates will grant these new users access to the API?- A. The
createDeploymentmethod must be called so the API can be redeployed to include the newly created API key. - B. The
updateAuthorizermethod must be called to update the API’s authorizer to include the newly created API key. - C. The
importApiKeysmethod must be called to import all newly created API keys into the current stage of the API. - D. The
createUsagePlanKeymethod must be called to associate the newly created API key with the correct usage plan.
Answer
Correct Answer: D
- A. The
-
A Developer is writing a mobile application that allows users to view images from an S3 bucket. The users must be able to log in with their Amazon login, as well as Facebook and/or Google accounts. How can the Developer provide this authentication functionality?
- A. Use Amazon Cognito with web identity federation.
- B. Use Amazon Cognito with SAML-based identity federation.
- C. Use AWS IAM Access/Secret keys in the application code to allow
Get*on the S3 bucket. - D. Use AWS STS
AssumeRolein the application code and assume a role withGet*permissions on the S3 bucket.
Answer
Correct Answer: A
-
A Developer wants access to make the log data of an application running on an EC2 instance available to systems administrators. Which of the following enables monitoring of this metric in Amazon CloudWatch?
- A. Retrieve the log data from CloudWatch using the
GetMetricDataAPI call. - B. Retrieve the log data from AWS CloudTrail using the
LookupEventsAPI call. - C. Launch a new EC2 instance, configure Amazon CloudWatch Events, and then install the application.
- D. Install the Amazon CloudWatch Logs agent on the EC2 instance that the application is running on.
Answer
Correct Answer: D
- A. Retrieve the log data from CloudWatch using the
-
A nightly batch job loads 1 million new records into a DynamoDB table. The records are only needed for one hour, and the table needs to be empty by the next night’s batch job. Which is the MOST efficient and cost-effective method to provide an empty table?
- A. Use
DeleteItemusing aConditionExpression. - B. Use
BatchWriteItemto empty all of the rows. - C. Write a recursive function that scans and calls out
DeleteItem. - D. Create and then delete the table after the task has completed.
Answer
Correct Answer: D
- A. Use
-
A company has an application that logs all information to Amazon S3. Whenever there is a new log file, an AWS Lambda function is invoked to process the log files. The code works, gathering all of the necessary information. However, when checking the Lambda function logs, duplicate entries with the same request ID are found. What is causing the duplicate entries?
- A. The S3 bucket name was specified incorrectly.
- B. The Lambda function failed, and the Lambda service retired the invocation with a delay.
- C. There was an S3 outage, which caused duplicate entries of the sale log file.
- D. The application stopped intermittently and then resumed.
Answer
Correct Answer: B
-
A company is providing services to many downstream consumers. Each consumer may connect to one or more services. This has resulted in a complex architecture that is difficult to manage and does not scale well. The company needs a single interface to manage these services to consumers. Which AWS service should be used to refactor this architecture?
- A. AWS Lambda.
- B. AWS X-Ray.
- C. Amazon SQS.
- D. Amazon API Gateway.
Answer
Correct Answer: D
-
A Developer is creating a serverless website with content that includes HTML files, images, videos, and JavaScript (client-side scripts). Which combination of services should the Developer use to create the website?
- A. Amazon S3 and Amazon CloudFront.
- B. Amazon EC2 and Amazon ElastiCache.
- C. Amazon ECS and Redis.
- D. AWS Lambda and Amazon API Gateway.
Answer
Correct Answer: A
-
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.
Answer
Correct Answer: A
-
A company is creating an application that will require users to access AWS services and allow them to reset their own passwords. Which of the following would allow the company to manage users and authorization while allowing users to reset their own passwords?
- A. Amazon Cognito identify pools and AWS STS.
- B. Amazon Cognito identity pools and AWS IAM.
- C. Amazon Cognito user pools and AWS KMS.
- D. Amazon Cognito user pools and identity pools.
Answer
Correct Answer: D
-
A company has three different environments: Development, QA, and Production. The company wants to deploy its code first in the Development environment, then QA, and then Production. Which AWS service can be used to meet this requirement?
- A. Use AWS CodeCommit to create multiple repositories to deploy the application.
- B. Use AWS CodeBuild to create, configure, and deploy multiple build application projects.
- C. Use AWS Data Pipeline to create multiple data pipeline provisions to deploy the application.
- D. Use AWS CodeDeploy to create multiple deployment groups.
Answer
Correct Answer: C
-
A company uses Amazon DynamoDB for managing and tracking orders. The DynamoDB table is partitioned based on the order date. The company receives a huge increase in orders during a sales event, causing DynamoDB writes to throttle, and the consumed throughput is far below the provisioned throughput. According to AWS best practices, how can this issue be resolved with MINIMAL costs?
- A. Create a new DynamoDB table for every order date.
- B. Increase the read and write capacity units of the DynamoDB table.
- C. Add a random number suffix to the partition key values.
- D. Add a global secondary index to the DynamoDB table.
Answer
Correct Answer: C
-
A Development team currently supports an application that uses an in-memory store to save accumulated game results. Individual results are stored in a database. As part of migrating to AWS, the team needs to use automatic scaling. The team knows this will yield inconsistent results. Where should the team store these accumulated game results to BEST allow for consistent results without impacting performance?
- A. Amazon S3.
- B. Amazon RDS.
- C. Amazon ElastiCache.
- D. Amazon Kinesis.
Answer
Correct Answer: C
-
In a multi-container Docker environment in AWS Elastic Beanstalk, what is required to configure container instances in the environment?
- A. An Amazon ECS task definition.
- B. An Amazon ECS cluster.
- C. A Dockerfile in an application package.
- D. A CLI for Elastic Beanstalk.
Answer
Correct Answer: A
-
An application that runs on an Amazon EC2 instance needs to access and make API calls to multiple AWS services. What is the MOST secure way to provide access to the AWS services with MINIMAL management overhead?
- A. Use AWS KMS to store and retrieve credentials.
- B. Use EC2 instance profiles.
- C. Use AWS
rootuser to make requests to the application. - D. Store and retrieve credentials from AWS CodeCommit.
Answer
Correct Answer: B
-
A company maintains an application responsible for processing several thousand external callbacks each day. The company’s System administrators want to know how many callbacks are being received on a rolling basis, and they want this data available for 10 days. The company also wants the ability to issue automated alerts if the number of callbacks exceeds the defined thresholds. What is the MOST cost-effective way to address the need to track and alert on these statistics?
- A. Push callback data to an Amazon RDS database that can be queried to show historical data and to alert on exceeded thresholds.
- B. Push callback data to AWS X-Ray and use AWS Lambda to query, display, and alert on exceeded thresholds.
- C. Push callback data to Amazon Kinesis Data Streams and invoke an AWS Lambda function that stores data in Amazon DynamoDB and sends the required alerts.
- D. Push callback data to Amazon CloudWatch as a custom metric and use the CloudWatch alerting mechanisms to alert System Administrators.
Answer
Correct Answer: D
-
A company has a website that is developed in PHP and WordPress and is launched using AWS Elastic Beanstalk. There is a new version of the website that needs to be deployed in the Elastic Beanstalk environment. The company cannot tolerate having the website offline if an update fails. Deployments must have minimal impact and rollback as soon as possible. What deployment method should be used?
- A. All at once.
- B. Rolling.
- C. Snapshots.
- D. Immutable.
Answer
Correct Answer: D
-
A company has a multi-tiered web application on AWS. During a recent spike in traffic, one of the primary relational databases on Amazon RDS could not serve all the traffic. Some read queries for repeatedly accessed items failed, so users received error messages. What can be done to minimize the impact on database read queries MOST efficiently during future traffic spikes?
- A. Use Amazon S3 to cache database query results.
- B. Use Amazon RDS as a custom origin for Amazon CloudFront.
- C. Use local storage and memory on Amazon EC2 instances to cache data.
- D. Use Amazon ElastiCache in front of the primary database to cache data.
Answer
Correct Answer: D
-
A Developer must build an application that uses Amazon DynamoDB. The requirements state that the items being stored in the DynamoDB table will be 7KB in size and that reads must be strongly consistent. The maximum read rate is 3 items per second, and the maximum write rate is 10 items per second. How should the Developer size the DynamoDB table to meet these requirements?
- A. Read: 3 read capacity.
unitsWrite: 70 write capacity units. - B. Read: 6 read capacity.
unitsWrite: 70 write capacity units. - C. Read: 6 read capacity.
unitsWrite: 10 write capacity units. - D. Read: 3 read capacity.
unitsWrite: 10 write capacity units.
Answer
Correct Answer: B
- A. Read: 3 read capacity.
-
A Developer is creating an AWS Lambda function to process a stream of data from an Amazon Kinesis Data Stream. When the Lambda function parses the data and encounters a missing field, it exits the function with an error. The function is generating duplicate records from the Kinesis stream. When the Developer looks at the stream output without the Lambda function, there are no duplicate records. What is the reason for the duplicates?
- A. The Lambda function did not advance the Kinesis stream pointer to the next record after the error.
- B. The Lambda event source used asynchronous invocation, resulting in duplicate records.
- C. The Lambda function did not handle the error, and the Lambda service attempted to reprocess the data.
- D. The Lambda function is not keeping up with the amount of data coming from the stream.
Answer
Correct Answer: C
-
A company is developing an application that will run on several Amazon EC2 instances in an Auto Scaling group and can access a database running on Amazon EC2. The application needs to store secrets required to connect to the database. The application must allow for periodic secret rotation, and there should be no changes to the application when a secret changes. What is the SAFEST way to meet these requirements?
- A. Associate an IAM role to the EC2 instance where the application is running with permission to access the database.
- B. Use AWS Systems Manager Parameter Store with the SecureString data type to store secrets.
- C. Configure the application to store secrets in Amazon S3 object metadata.
- D. Hard code the database secrets in the application code itself.
Answer
Correct Answer: B
-
A Developer writes an AWS Lambda function and uploads the code in a
.ZIPfile to Amazon S3. The Developer makes changes to the code and uploads a new.ZIPfile to Amazon S3. However, Lambda executes the earlier code. How can the Developer fix this in the LEAST disruptive way?- A. Create another Lambda function and specify the new
.ZIPfile. - B. Call the
update-function-codeAPI. - C. Remove the earlier
.ZIPfile first, then add the new.ZIPfile. - D. Call the
create-aliasAPI.
Answer
Correct Answer: B
- A. Create another Lambda function and specify the new
-
An AWS Lambda function must read data from an Amazon RDS MySQL database in a VPC and also reach a public endpoint over the internet to get additional data. Which steps must be taken to allow the function to access both the RDS resource and the public endpoint? (Select TWO)
- A. Modify the default configuration for the Lambda function to associate it with an Amazon VPC private subnet.
- B. Modify the default network access control list to allow outbound traffic.
- C. Add a NAT Gateway to the VPC.
- D. Modify the default configuration of the Lambda function to associate it with a VPC public subnet.
- E. Add an environmental variable to the Lambda function to allow outbound internet access.
Answer
Correct Answer: AC
-
A Developer has been asked to make changes to the source code of an AWS Lambda function. The function is managed using an AWS CloudFormation template. The template is configured to load the source code from an Amazon S3 bucket. The Developer manually created a
.ZIPfile deployment package containing the changes and put the file into the correct location on Amazon S3. When the function is invoked, the code changes have not been applied. What step is required to update the function with the changes?- A. Delete the
.ZIPfile on S3, and re-upload by using a different object key name. - B. Update the CloudFormation stack with the correct values for the function code properties S3Bucket, S3Key, or S3ObjectVersion.
- C. Ensure that the function source code is base64-encoded before uploading the deployment package to S3.
- D. Modify the execution role of the Lambda function to allow S3 access permission to the deployment package
.ZIPfile.
Answer
Correct Answer: B
- A. Delete the
-
A Developer wants to enable AWS X-Ray for a secure application that runs in an Amazon ECS environment. What combination of steps will enable X-Ray? (Select THREE)
- A. Create a Docker image that runs the X-Ray daemon.
- B. Add instrumentation to the application code for X-Ray.
- C. Install the X-Ray daemon on the underlying EC2 instance.
- D. Configure and use an IAM EC2 instance role.
- E. Register the application with X-Ray.
- F. Configure and use an IAM role for tasks.
Answer
Correct Answer: ABF
-
A Developer is designing a new application that uses Amazon S3. To satisfy compliance requirements, the Developer must encrypt the data at rest. How can the Developer accomplish this?
- A. Use
s3:x-amz-aclas a condition in the S3 bucket policy. - B. Use Amazon RDS with default encryption.
- C. Use
aws:SecureTransportas a condition in the S3 bucket policy. - D. Turn on S3 default encryption for the S3 bucket.
Answer
Correct Answer: D
- A. Use