Quiz
AWS Certified Developer Associate Practice Exam Questions 2
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (65)
1A 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.
- AConcurrent writes
- BBatch writes
- CConditional writes
- DAtomic writes
2An application runs on a fleet of Amazon EC2 instances in an Auto Scaling group. The application stores data in an Amazon DynamoDB table and all instances make updates to the table. When querying data, EC2 instances sometimes retrieve stale data. The Developer needs to update the application to ensure the most up-to-date data is retrieved for all queries.
- ASet the ConsistentRead parameter to true when calling GetItem.
- BCache the database writes using Amazon DynamoDB Accelerator.
- CUse the TransactWriteItems API when issuing PutItem actions.
- DUse the UpdateGlobalTable API to create a global secondary index.
3Pregunta 3: Omitido
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?- AUse EC2 instance profiles
- BUse AWS KMS to store and retrieve credentials
- CUse AWS root user to make requests to the application
- DStore and retrieve credentials from AWS CodeCommit
4A Development team would like to migrate their existing application code from a GitHub repository to AWS CodeCommit.
What needs to be created before they can migrate a cloned repository to CodeCommit over HTTPS?- AA public and private SSH key file
- BA GitHub secure authentication token
- CAn Amazon EC2 IAM role with CodeCommit permissions
- DA set of credentials generated from IAM
5A temporary Developer needs to be provided with access to specific resources for a one week period. Which element of an IAM policy statement can be used to allow access only on or before a specific date?
- ANotResource
- BCondition
- CAction
- DVersion
6A CloudFormation template is going to be used by a global team to deploy infrastructure in several regions around the world. Which section of the template file can be used to set values based on a region?
- AMappings
- BMetadata
- CConditions
- DParameters
7A Developer has created an Amazon S3 bucket and uploaded some objects that will be used for a publicly available static website. What steps MUST be performed to configure the bucket as a static website? (Select TWO.)
- AEnable public access and grant everyone the s3:GetObject permissions
- BUpload an index and error document and enter the name of the index and error documents when enabling static website hosting
- CCreate an object access control list (ACL) granting READ permissions to the AllUsers group
- DUpload an index document and enter the name of the index document when enabling static website hosting
- EUpload a certificate from AWS Certificate Manager
8A Developer is creating an application that will process some data and generate an image file from it. The application will use an AWS Lambda function which will require 150 MB of temporary storage while executing. The temporary files will not be needed after the function execution is completed.
What is the best location for the Developer to store the files?- AStore the files in the /tmp directory and delete the files when the execution completes
- BStore the files in an Amazon Instance Store and delete the files when the execution completes
- CStore the files in Amazon S3 and use a lifecycle policy to delete the files automatically
- DStore the files in an Amazon EFS filesystem and delete the files when the execution completes
9A company uses Amazon DynamoDB to store sensitive data that must be encrypted. The company security policy mandates that data must be encrypted before it is submitted to DynamoDB
How can a Developer meet these requirements?- AUse the UpdateTable operation to switch to a customer managed customer master key (CMK).
- BUse the UpdateTable operation to switch to an AWS managed customer master key (CMK).
- CUse the DynamoDB Encryption Client to enable end-to-end protection using client-side encryption.
- DUse AWS Certificate Manager (ACM) to create one certificate for each DynamoDB table.
10A developer needs to add sign-up and sign-in capabilities for a mobile app. The solution should integrate with social identity providers (IdPs) and SAML IdPs. Which service should the developer use?
- AAWS IAM and STS
- BAPI Gateway with a Lambda authorizer
- CAWS Cognito identity pool
- DAWS Cognito user pool
11A company maintains a REST API service using Amazon API Gateway with 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 CreateApiKey and sends the new key to the user. When the user attempts to call the API using this key, the user receives a 403 Forbidden error. Existing users are unaffected and can still call the API.
What code updates will grant these new users’ access to the API?- AThe createUsagePlanKey method must be called to associate the newly created API key with the correct usage plan
- BThe importApiKeys method must be called to import all newly created API keys into the current stage of the API
- CThe updateAuthorizer method must be called to update the API’s authorizer to include the newly created API key
- DThe createDeployment method must be called so the API can be redeployed to include the newly created API key
12An application requires an in-memory caching engine. The cache should provide high availability as repopulating data is expensive. How can this requirement be met?
- AAmazon RDS with a Read Replica
- BUse Amazon ElastiCache Memcached with partitions
- CAmazon Aurora with a Global Database
- DUse Amazon ElastiCache Redis with replicas
13A 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.
A Developer plans to add an in-memory store to improve performance for repeated read requests. Which AWS service would BEST fit these requiremen- AAmazon RDS read replica
- BAmazon RDS Multi-AZ
- CAmazon SQS
- DAmazon ElastiCache
14An Amazon DynamoDB table has been created using provisioned capacity. A manager needs to understand whether the DynamoDB table is cost-effective. How can the manager query how much provisioned capacity is actually being used?
- A1. Use AWS X-Ray to instrument the DynamoDB table and monitor sub segments
- BUse Amazon CloudTrail and monitor the DescribeLimits API action
- CMonitor the ReadThrottleEvents and WriteThrottleEvents metrics for the table
- DMonitor the ConsumedReadCapacityUnits and ConsumedWriteCapacityUnits over a specified time period
15A Developer is creating a REST service using Amazon API Gateway with AWS Lambda integration. The service adds data to a spreadsheet and the data is sent as query string parameters in the method request.
How should the Developer convert the query string parameters to arguments for the Lambda function?- AEnable request validation
- BInclude the Amazon Resource Name (ARN) of the Lambda function
- CCreate a mapping template
- DChange the integration type
16A 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 error- AContact AWS Support to increase the concurrent execution limits
- BAdd an event source from Amazon API Gateway to the Lambda function
- CImplement error handling within the application code
- DImplement dead-letter queues to capture invocation errors
17A Development team are currently creating a new application that uses a microservices design pattern and runs on Docker containers. The team would like to run the platform on AWS using a managed platform. They want minimize management overhead for the platform. Which service should the Development team use?
- AAmazon Elastic Kubernetes Service (EKS)
- BAWS Lambda
- CAmazon ECS with Fargate launch type
- DAmazon ECS with EC2 launch type
18A Developer is creating a serverless application that will process sensitive data. The AWS Lambda function must encrypt all data that is written to /tmp storage at rest.
How should the Developer encrypt this data?- AEnable secure connections over HTTPS for the AWS Lambda API endpoints using Transport Layer Security (TLS).
- BConfigure Lambda to use an AWS KMS customer managed customer master key (CMK). Use the CMK to generate a data key and encrypt all data prior to writing to /tmp storage.
- CEnable default encryption on an Amazon S3 bucket using an AWS KMS customer managed customer master key (CMK). Mount the S3 bucket to /tmp.
- DAttach the Lambda function to a VPC and encrypt Amazon EBS volumes at rest using the AWS managed CMK. Mount the EBS volume to /tmp.
19Customers who use a REST API have reported performance issues. A Developer needs to measure the time between when API Gateway receives a request from a client and when it returns a response to the client.
Which metric should the Developer monitor?- AIntegrationLatency
- B5XXError
- CLatency
- DCacheHitCount
20An application exports documents to an Amazon S3 bucket. The data must be encrypted at rest and company policy mandates that encryption keys must be rotated annually. How can this be achieved automatically and with the LEAST effort?
- AEncrypt the data within the application before writing to S3
- BConfigure automatic rotation with AWS Secrets Manager
- CImport a custom key into AWS KMS and configure automatic rotation
- DUse AWS KMS keys with automatic rotation enabled
21A customer requires a relational database for a transactional workload. Which type of AWS database is BEST suited to this requirement?
- AAmazon RDS
- BAmazon DynamoDB
- CAmazon RedShift
- DAmazon ElastiCache
22A serverless application uses an IAM role to authenticate and authorize access to an Amazon DynamoDB table. A Developer is troubleshooting access issues affecting the application. The Developer has access to the IAM role that the application is using.
Which of the following commands will help the Developer to test the role permissions using the AWS CLI?- Aaws sts assume-role
- Baws dynamodb describe-endpoints
- Caws sts get-session-token
- Daws iam get-role-policy
23A utilities company needs to ensure that documents uploaded by customers through a web portal are securely stored in Amazon S3 with encryption at rest. The company does not want to manage the security infrastructure in-house. However, the company still needs maintain control over its encryption keys due to industry regulations.
Which encryption strategy should a Developer use to meet these requirements?- AClient-side encryption
- BServer-side encryption with customer-provided encryption keys (SSE-C)
- CServer-side encryption with Amazon S3 managed keys (SSE-S3)
- DServer-side encryption with AWS KMS managed keys (SSE-KMS)
24A Lambda function is taking a long time to complete. The Developer has discovered that inadequate compute capacity is being allocated to the function. How can the Developer ensure that more compute capacity is allocated to the function?
- AIncrease the maximum execution time
- BAllocate more memory to the function
- CIncrease the reserved concurrency
- DUse an instance type with more CPU
25A company has deployed a REST API using Amazon API Gateway with a Lambda authorizer. The company needs to log who has accessed the API and how the caller accessed the API. They also require logs that include errors and execution traces for the Lambda authorizer.
Which combination of actions should the Developer take to meet these requirements? (Select TWO.)- AEnable API Gateway execution logging.
- BEnable server access logging.
- CEnable API Gateway access logs.
- DCreate an API Gateway usage plan.
- EEnable detailed logging in Amazon CloudWatch.
26A team of Developers need to deploy a website for a development environment. The team do not want to manage the infrastructure and just need to upload Node.js code to the instances.
Which AWS service should Developers do?- ALaunch an Auto Scaling group of Amazon EC2 instances
- BCreate an AWS Lambda package
- CCreate an AWS CloudFormation template
- DCreate an AWS Elastic Beanstalk environment
27An application is deployed using AWS Elastic Beanstalk and uses a Classic Load Balancer (CLB). A developer is performing a blue/green migration to change to an Application Load Balancer (ALB).
After deployment, the developer has noticed that customers connecting to the ALB need to re-authenticate every time they connect. Normally they would only authenticate once and then be able to reconnect without re-authenticating for several hours.
How can the developer resolve this issue?- AEnable IAM authentication on the ALBs listener
- BEnable Sticky Sessions on the target group
- CChange the load balancing algorithm on the target group to “least outstanding requests)
- DAdd a new SSL certificate to the ALBs listener
28A Developer is creating an application and would like add AWS X-Ray to trace user requests end-to-end through the software stack. The Developer has implemented the changes and tested the application and the traces are successfully sent to X-Ray. The Developer then deployed the application on an Amazon EC2 instance, and noticed that the traces are not being sent to X-Ray.
What is the most likely cause of this issue? (Select TWO.)- AThe X-Ray API is not installed on the EC2 instance
- BThe instance’s instance profile role does not have permission to upload trace data to X-Ray
- CThe X-Ray segments are being queued
- DThe traces are reaching X-Ray, but the Developer does not have permission to view the records
- EThe X-Ray daemon is not installed on the EC2 instance.
29A developer is designing a web application that will run on Amazon EC2 Linux instances using an Auto Scaling Group. The application should scale based on a threshold for the number of users concurrently using the application.
How should the Auto Scaling Group be configured to scale out?- ACreate a custom Amazon CloudWatch metric for concurrent users
- BUse the Amazon CloudWatch metric “NetworkIn”
- CCreate a custom Amazon CloudWatch metric for memory usage
- DUse a target tracking scaling policy
30A Developer is building a WebSocket API using Amazon API Gateway. The payload sent to this API is JSON that includes an action key which can have multiple values. The Developer must integrate with different routes based on the value of the action key of the incoming JSON payload.
How can the Developer accomplish this task with the LEAST amount of configuration?- ACreate a separate stage for each possible value of the action key.
- BSet the value of the route selection expression to $request.body.action.
- CCreate a mapping template to map the action key to an integration request.
- DSet the value of the route selection expression to $default.
31An application will be hosted on the AWS Cloud. Developers will be using an Agile software development methodology with regular updates deployed through a continuous integration and delivery (CI/CD) model. Which AWS service can assist the Developers with automating the build, test, and deploy phases of the release process every time there is a code change?
- AAWS Elastic Beanstalk
- BAWS CodePipeline
- CAWS CloudFormation
- DAWS CodeBuild
32A developer created an operational dashboard for a serverless application using Amazon API Gateway, AWS Lambda, Amazon S3, and Amazon DynamoDB. Users will connect to the dashboard from a variety of mobile applications, desktops and tablets.
The developer needs an authentication mechanism that can allow users to sign-in and will remember the devices users sign in from and suppress the second factor of authentication for remembered devices. Which AWS service should the developer use to support this scenario?- AAmazon Cognito
- BAmazon IAM
- CAWS KMS
- DAWS Directory Service
33AWS CodeBuild builds code for an application, creates the Docker image, pushes the image to Amazon Elastic Container Registry (Amazon ECR), and tags the image with a unique identifier.
If the Developers already have AWS CLI configured on their workstations, how can the Docker images be pulled to the workstations?- ARun the output of the following: aws ecr get-login and then run: docker pull REPOSITORY URI : TAG
- BRun the following: docker pull REPOSITORY URI : TAG
- CRun the following: aws ecr get-login and then run: docker pull REPOSITORY URI : TAG
- DRun the output of the following: aws ecr get-download-url-for-layer and then run: docker pull REPOSITORY URI : TAG
34A Developer is developing a web application and will maintain separate sets of resources for the alpha, beta, and release stages. Each version runs on Amazon EC2 and uses an Elastic Load Balancer.
How can the Developer create a single page to view and manage all of the resources?- ACreate a single AWS CodeDeploy deployment
- BDeploy all resources using a single Amazon CloudFormation stack
- CCreate a resource group
- DCreate an AWS Elastic Beanstalk environment for each stage
35A company manages a web application that is deployed on AWS Elastic Beanstalk. A Developer has been instructed to update to a new version of the application code. There is no tolerance for downtime if the update fails and rollback should be fast.
What is the SAFEST deployment method to use?- AAll at once
- BRolling
- CImmutable
- DRolling with Additional Batch
36There are multiple AWS accounts across multiple regions managed by a company. The operations team require a single operational dashboard that displays some key performance metrics from these accounts and regions. What is the SIMPLEST solution?
- ACreate an Amazon CloudWatch dashboard in one account and region and import the data from the other accounts and regions
- BCreate an AWS Lambda function that collects metrics from each account and region and pushes the metrics to the account where the dashboard has been created
- CCreate an Amazon CloudTrail trail that applies to all regions and deliver the logs to a single Amazon S3 bucket. Create a dashboard using the data in the bucket
- DCreate an Amazon CloudWatch cross-account cross-region dashboard
37A Developer is configuring an Amazon ECS Service with Auto Scaling. The tasks should scale based on user load in the previous 20 seconds. How can the Developer enable the scaling?
- ACreate a standard-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 30 seconds
- BCreate a standard-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 5 seconds
- CCreate a high-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 10 seconds
- DCreate a high-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 5 seconds
38A Developer is creating a design for an application that will include Docker containers on Amazon ECS with the EC2 launch type. The Developer needs to control the placement of tasks onto groups of container instances organized by availability zone and instance type.
Which Amazon ECS feature provides expressions that can be used to group container instances by the relevant attributes?- ATask Group
- BTask Placement Constraints
- CTask Placement Strategy
- DCluster Query Language
39A Developer needs to be notified by email for all new object creation events in a specific Amazon S3 bucket. Amazon SNS will be used for sending the messages. How can the Developer enable these notifications?
- ACreate an event notification for all s3:ObjectCreated:Put API calls
- BCreate an event notification for all s3:ObjectRestore:Post API calls
- CCreate an event notification for all s3:ObjectCreated:* API calls
- DCreate an event notification for all s3:ObjectRemoved:Delete API calls
40A Developer needs to manage AWS services from a local development server using the AWS CLI. How can the Developer ensure that the CLI uses their IAM permissions?
- ARun the aws configure command and provide the Developer’s IAM access key ID and secret access key
- BPut the Developer’s IAM user account in an IAM group that has the necessary permissions
- CCreate an IAM Role with the required permissions and attach it to the local server’s instance profile
- DSave the Developer’s IAM login credentials as environment variables and reference them when executing AWS CLI commands
41A Developer is launching an application on Amazon ECS. The application should scale tasks automatically based on load and incoming connections must be spread across the containers.
How should the Developer configure the ECS cluster?- ACreate a capacity provider and configure cluster auto scaling
- BWrite statements using the Cluster Query Language to scale the Docker containers
- CCreate an ECS Task Definition that uses Auto Scaling and Elastic Load Balancing
- DCreate an ECS Service with Auto Scaling and attach an Elastic Load Balancer
42An application is hosted in AWS Elastic Beanstalk and is connected to a database running on Amazon RDS MySQL. A Developer needs to instrument the application to trace database queries and calls to downstream services using AWS X-Ray.
How can the Developer enable tracing for the application?- AAdd a xray-daemon.config file to the root of the source code to enable the X-Ray deamon
- BEnable X-Ray tracing using an AWS Lambda function
- CAdd a .ebextensions/xray-daemon.config file to the source code to enable the X-Ray daemon
- DEnable active tracing in the Elastic Beanstalk console
43A company recently migrated a multi-tier application to AWS. The web tier runs on an Auto Scaling group of Amazon EC2 instances and the database tier uses Amazon DynamoDB. The database tier requires extremely high performance and most requests are repeated read requests.
What service can be used to scale the database tier for BEST performance?- AAmazon ElastiCache
- BAmazon CloudFront
- CAmazon SQS
- DAmazon DynamoDB Accelerator (DAX)
44A developer needs use the attribute of an Amazon S3 object that uniquely identifies the object in a bucket. Which of the following represents an Object Key?
- Aarn:aws:s3:::dctlabs
- BProject=Blue
- CDevelopment/Projects.xls
- Ds3://dctlabs/Development/Projects.xls
45A Developer is creating a DynamoDB table for storing transaction logs. The table has 10 write capacity units (WCUs). The Developer needs to configure the read capacity units (RCUs) for the table in order to MAXIMIZE the number of requests allowed per second. Which of the following configurations should the Developer use?
- AEventually consistent reads of 5 RCUs reading items that are 4 KB in size
- BStrongly consistent reads of 5 RCUs reading items that are 4 KB in size
- CStrongly consistent reads of 15 RCUs reading items that are 1KB in size
- DEventually consistent reads of 15 RCUs reading items that are 1 KB in size
46A company is using Amazon API Gateway to manage access to a set of microservices implemented as AWS Lambda functions. The company has made some minor changes to one of the APIs. The company wishes to give existing customers using the API up to 6 months to migrate from version 1 to version 2.
What approach should a Developer use to implement the change?- AUse API Gateway to deploy a new stage named v2 to the API and provide users with its URL
- BUpdate the underlying Lambda function and provide clients with the new Lambda invocation URL
- CUpdate the underlying Lambda function, create an Amazon CloudFront distribution with the updated Lambda function as its origin
- DUse API Gateway to automatically propagate the change to clients, specifying 180 days in the phased deployment parameter
47A new application will be deployed using AWS CodeDeploy to Amazon Elastic Container Service (ECS). What must be supplied to CodeDeploy to specify the ECS service to deploy?
- AThe BuildSpec file
- BThe Template file
- CThe Policy file
- DThe AppSpec file
48A Developer has completed some code updates and needs to deploy the updates to an Amazon Elastic Beanstalk environment. The update must be deployed in the fastest possible time and application downtime is acceptable.
Which deployment policy should the Developer choose?- ARolling with additional batch
- BRolling
- CAll at once
- DImmutable
49An organization has an account for each environment: Production, Testing, Development. A Developer with an IAM user in the Development account needs to launch resources in the Production and Testing accounts. What is the MOST efficient way to provide access
- ACreate a role with the required permissions in the Production and Testing accounts and have the Developer assume that role
- BCreate an IAM group in the Production and Testing accounts and add the Developer’s user from the Development account to the groups
- CCreate a separate IAM user in each account and have the Developer login separately to each account
- DCreate an IAM permissions policy in the Production and Testing accounts and reference the IAM user in the Development account
50A Developer is using AWS SAM to create a template for deploying a serverless application. The Developer plans to leverage an application from the AWS Serverless Application Repository in the template as a nested application.
Which resource type should the Developer specify?- AAWS::Serverless:Function
- BAWS::Serverless:SimpleTable
- CAWS::Serverless:HttpApi
- DAWS::Serverless::Application
51A new application will be hosted on the domain name dctlabs.com using an Amazon API Gateway REST API front end. The Developer needs to configure the API with a path to dctlabs.com/products that will be accessed using the HTTP GET verb. How MUST the Developer configure the API? (Select TWO)
- ACreate a GET method
- BCreate a /GET method
- CCreate a /products method
- DCreate a GET resource
- ECreate a /products resource
52A static website that serves a collection of images runs from an Amazon S3 bucket in the us-east-1 region. The website is gaining in popularity and a is now being viewed around the world. How can a Developer improve the performance of the website for global users?
- AUse cross region replication to replicate the bucket to several global regions
- BUse Amazon S3 Transfer Acceleration to improve the performance of the website
- CUse Amazon CloudFront to cache the website content
- DUse Amazon ElastiCache to cache the website content
53A Developer has deployed an application that runs on an Auto Scaling group of Amazon EC2 instances. The application data is stored in an Amazon DynamoDB table and records are constantly updated by all instances. An instance sometimes retrieves old data. The Developer wants to correct this by making sure the reads are strongly consistent.
How can the Developer accomplish this?- ASet consistency to strong when calling UpdateTable
- BSet ConsistentRead to true when calling GetItem
- CCreate a new DynamoDB Accelerator (DAX) table
- DUse the GetShardIterator command
54An application running on Amazon EC2 generates a large number of small files (1KB each) containing personally identifiable information that must be converted to ciphertext. The data will be stored on a proprietary network-attached file system. What is the SAFEST way to encrypt the data using AWS KMS?
- ACreate a data encryption key from a customer master key and encrypt the data with the customer master key
- BEncrypt the data directly with an AWS managed customer master key
- CCreate a data encryption key from a customer master key and encrypt the data with the data encryption key
- DEncrypt the data directly with a customer managed customer master key
55A company runs multiple microservices that each use their own Amazon DynamoDB table. The “customers” microservice needs data that originates in the “orders” microservice.
What approach represents the SIMPLEST method for the “customers” table to get near real-time updates from the “orders” table?- AUse Amazon Kinesis Firehose to deliver all changes in the “orders” table to the “customers” table
- BEnable DynamoDB streams for the “customers” table, trigger an AWS Lambda function to read records from the stream and write them to the “orders” table
- CUse Amazon CloudWatch Events to send notifications every time an item is added or modified in the “orders” table
- DEnable Amazon DynamoDB streams on the “orders” table, configure the “customers” microservice to read records from the stream
56A Developer implemented a static website hosted in Amazon S3 that makes web service requests hosted in Amazon API Gateway and AWS Lambda. The site is showing an error that reads:
“No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘null’ is therefore not allowed access.”
What should the Developer do to resolve this issue?- AAdd the Access-Control-Request-Headers header to the request
- BEnable cross-origin resource sharing (CORS) for the method in API Gateway
- CAdd the Access-Control-Request-Method header to the request
- DEnable cross-origin resource sharing (CORS) on the S3 bucket
57A Developer is attempting to call the Amazon CloudWatch API and is receiving HTTP 400: ThrottlingException errors intermittently. When a call fails, no data is retrieved.
What best practice should the Developer first attempt to resolve this issue?- AContact AWS Support for a limit increase
- BUse the AWS CLI to get the metrics
- CRetry the call with exponential backoff
- DAnalyze the applications and remove the API call
58A Developer is creating a serverless application. The application looks up information about a customer using a separate Lambda function for each item such as address and phone number. The Developer has created branches in AWS Step Functions for each lookup function.
How can the Developer optimize the performance, so the lookups complete faster?- AUse a Choice state to lookup the specific information required.
- BUse a Parallel state to iterate over all the branches parallel.
- CUse a Map state to iterate over all the items.
- DUse a Wait state to reduce the wait time for function execution.
59A Developer is deploying an application using Docker containers running on the Amazon Elastic Container Service (ECS). The Developer is testing application latency and wants to capture trace information between the microservices.
Which solution will meet these requirements?- AInstall the AWS X-Ray daemon on each of the Amazon ECS instances.
- BInstall the AWS X-Ray daemon locally on an Amazon EC2 instance and instrument the Amazon ECS microservices using the X-Ray SDK.
- CCreate a Docker image that runs the X-Ray daemon, upload it to a Docker image repository, and then deploy it to the Amazon ECS cluster.
- DInstall the Amazon CloudWatch agent on the container image. Use the CloudWatch SDK to publish custom metrics from each of the microservices.
60A developer has created an Amazon API Gateway with caching enabled in front of AWS Lambda. For some requests, it is necessary to ensure the latest data is received from the endpoint. How can the developer ensure the data is not stale?
- ASend requests with the Cache-Delete: max-age=0 header
- BModify the TTL on the cache to a lower number
- CSend requests with the Cache-Control: max-age=0 header
- DThe cache must be disabled
61An application searches a DynamoDB table to return items based on primary key attributes. A developer noticed some ProvisionedThroughputExceeded exceptions being generated by DynamoDB.
How can the application be optimized to reduce the load on DynamoDB and use the LEAST amount of RCU?- AModify the application to issue scan API calls with strong consistency reads
- BModify the application to issue query API calls with strong consistency reads
- CModify the application to issue query API calls with eventual consistency reads
- DModify the application to issue scan API calls with eventual consistency reads
62A team of Developers are working on a shared project and need to be able to collaborate on code. The shared application code must be encrypted at rest, stored on a highly available and durable architecture, and support multiple versions and batch change tracking.
Which AWS service should the Developer use?- AAmazon S3
- BAWS Cloud9
- CAWS CodeCommit
- DAWS CodeBuild
63A company runs a popular website behind an Amazon CloudFront distribution that uses an Application Load Balancer as the origin. The Developer wants to set up custom HTTP responses to 404 errors for content that has been removed from the origin that redirects the users to another page.
The Developer wants to use an AWS Lambda@Edge function that is associated with the current CloudFront distribution to accomplish this goal. The solution must use a minimum amount of resources.
Which CloudFront event type should the Developer use to invoke the Lambda@Edge function that contains the redirect logic?- AViewer response
- BOrigin request
- COrigin response
- DViewer request
64A company is developing a new online game that will run on top of Amazon ECS. Four distinct Amazon ECS services will be part of the architecture, each requiring specific permissions to various AWS services. The company wants to optimize the use of the underlying Amazon EC2 instances by bin packing the containers based on memory reservation.
Which configuration would allow the Development team to meet these requirements MOST securely- ACreate four distinct IAM roles, each containing the required permissions for the associated ECS services, then configure each ECS service to reference the associated IAM role
- BCreate four distinct IAM roles, each containing the required permissions for the associated ECS services, then configure each ECS task definition to reference the associated IAM role
- CCreate four distinct IAM roles, each containing the required permissions for the associated ECS services, then, create an IAM group and configure the ECS cluster to reference that group
- DCreate a new Identity and Access Management (IAM) instance profile containing the required permissions for the various ECS services, then associate that instance role with the underlying EC2 instances
65A DynamoDB table is being used to store session information for users of an online game. A developer has noticed that the table size has increased considerably and much of the data is not required after a gaming session is completed.
What is the MOST cost-effective approach to reducing the size of the table?- AUse the batch-write-item API to delete the data
- BUse the delete-item API to delete the data
- CCreate an AWS Lambda function that purges stale items from the table daily
- DEnable a Time To Live (TTL) on the table and add a timestamp attribute on new items
Information
- Description
- Otro AWS Quiz on AWS Certified Developer Associate Practice Exam Questions 2, created by Susana Martin on 19/12/2021.
- Author
- Susana Martin
- Language
- English
- Views
- 0
- Tags
- Rating
- No ratings yet Rate this quiz