AWS Certified Developer Associate Practice Exams 2022 Diagnostic Test
This top-level plaintext key-encryption key is known as the ____________ key.
master
__________ can limit the input that is passed by filtering the JSON notation by using a path
InputPath
The ________ parameter checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRun-Operation. Otherwise, it is UnauthorizedOperation.
-dry-run
Note that the IP address _______________ is a link-local address and is valid only from the instance.
169.254.169.254
Pimarily used for automating the build, test, and deploy phases of your release process every time there is a code change.
AWS CodePipeline
The Classic Load Balancer does support the multi-value headers feature.
FALSE
Amazon EBS does not support asymmetric CMKs
True
Global Accelerator is not a caching solution. It is a service used to improve the performance of your network traffic by utilizing the AWS global infrastructure instead of the public Internet.
True
With ElasticBeanstalk, you can:
- Select the operating system that matches your application requirements (e.g., Amazon Linux or Windows Server 2016) - Choose from several Amazon EC2 instances, including On-Demand, Reserved Instances, and Spot Instances. - Choose from several available database and storage options. - Enable login access to Amazon EC2 instances for immediate and direct troubleshooting - Quickly improve application reliability by running in more than one Availability Zone. - Enhance application security by enabling HTTPS protocol on the load balancer - Access built-in Amazon CloudWatch monitoring and getting notifications on application health and other important events - Adjust application server settings (e.g., JVM settings) and pass environment variables - Run other application components, such as a memory caching service, side-by-side in Amazon EC2. - Access log files without logging in to the application servers
Use this parameter if you want to get only the details that you like from the output of your command
--filters
this is a parameter that will generate and display a parameter template that you can customize and use as input on a later command
--generate-cli-skeleton
_____________ this URI is used to retrieve user data from within a running instance.
/latest/user-data/
it is used for automating the movement and transformation of data between different AWS compute and storage services, as well as on-premises data sources, at specified intervals. It integrates with AWS services such as AWS services such as Amazon S3, Amazon RDS, Amazon DynamoDB, and Amazon EMR. It is not used for managing the coordination of multiple AWS Services into serverless workflows.
AWS Data Pipeline
____________________ is an easy-to-use service for deploying and scaling web applications and services developed with Java, .NET, PHP, Node.js, Python, Ruby, Go, and Docker on familiar servers such as Apache, Nginx, Passenger, and IIS. You can upload your code and ____________ automatically handles the deployment, from capacity provisioning, load balancing, auto-scaling to application health monitoring. At the same time, you retain full control over the AWS resources powering your application and can access the underlying resources.
AWS Elastic Beanstalk
______________ lets you run code without provisioning or managing servers. You pay only for the compute time you consume. With ______________, you can run code for virtually any type of application or backend service - all with zero administration. Just upload your code and _____________ takes care of everything required to run and scale your code with high availability. You can set up your code to automatically trigger from other AWS services or call it directly from any web or mobile app.
AWS Lambda
this service is just a configuration management service that provides managed instances of Chef and Puppet. Chef and Puppet are automation platforms that allow you to use code to automate the configurations of your servers.
AWS OpsWorks
A serverless architecture running a state machine is composed of multiple Lambda functions invoking one another. The development team has to make significant code changes whenever they update the state machine. The team wants to improve its workflow by refactoring the architecture. Which service should the team use? A: AWS Step Functions B: AWS CodePipeline C: AWS Data Pipeline D: AWS OpsWorks
AWS Step Functions
______________ lets you coordinate multiple AWS services into serverless workflows so you can build and update apps quickly. Using _______________ you can design and run workflows that stitch together services, such as AWS Lambda, AWS Fargate, and Amazon SageMaker, into feature-rich applications.
AWS Step Functions
An IAM user with programmatic access wants to get information about specific EC2 instances on the us-east-1 region. Due to strict policy, the user was compelled to use the describe-instances operation using AWS Command Line Interface (CLI). He wants to check whether he has the required permission to initiate the command without actually making the request. Which of the following actions should be done to solve the problem? A: Add the --generate-cli-skeleton parameter to the describe-instances command. B: Add the --max-items parameter to the describe-instances command. C: Add the --filters parameter to the describe-instances command. D: Add the --dry-run parameter to the describe-instances command.
Add the --dry-run parameter to the describe-instances command.
A full-stack developer has developed an application written in Node.js to host an upcoming mobile game tournament. The developer has decided to deploy the application using AWS Elastic Beanstalk because of its ease-of-use. Upon experimenting, he learned that he could configure the webserver environment with several resources. Which of the following services can the developer configure with Elastic Beanstalk? (Select THREE.) A: Amazon Athena B: Amazon EC2 Instance C: Amazon CloudFront D: AWS Lambda E: Application Load Balancer F: Amazon CloudWatch
Amazon EC2 Instance Applicaton Load Balaner Amazon Cloudwatch
_______________ offers fully managed Redis and Memcached for most demanding applications that require sub-millisecond response times.
Amazon ElastiCache
___________________ allows you to seamlessly set up, run, and scale popular open-Source compatible in-memory data stores in the cloud. Build data-intensive apps or boost the performance of your existing databases by retrieving data from high throughput and low latency in-memory data stores. ________ is a popular choice for real-time use cases like Caching, Session Stores, Gaming, Geospatial Services, Real-Time Analytics, and Queuing.
Amazon ElastiCache
You can manage the coordination of a state machine in Step Functions using the ___________________. The ___________________ is a JSON-based, structured language used to define your state machine, a collection of states, that can do work (Task states), determine which states to transition to next (Choice states), stop execution with an error (Fail states), and so on.
Amazon States Language
__________________ provide two advanced options that you may want to configure when you use ALBs with AWS Lambda: support for multi-value headers and health check configurations. You can set up these options in Target Groups section on the Amazon EC2 console.
Application Load Balancers
__________________-- represents a mathematically related public key and private key pair for encryption and decryption.
Asymmetric key
A company has deployed a new serverless Single Page Application (SPA) on AWS. The application ran smoothly in the first few weeks until it got featured on a popular television show. As it gained popularity, the number of users getting a 503 error also increased. The developer found out that this is due to the throttling of the Lambda function. What can the developer do to troubleshoot this issue? (Select THREE.) A: Configure reserved concurrency B: Deploy the Lambda function in VPC C: Request a service quota increase D: Use a compiled language like GoLang to improve the function's performance E: Use exponential backoff in the application. F: Increase Lambda function timeout
Configure reserved concurrency - by default, there are 900 unreserved concurrencies shared across all functions in a region. To prevent other functions from consuming the available concurrent executions, reserve a portion of it to your Lambda function based on the demand of your current workload. Request a service quota increase - you can reach AWS support to request for a higher service quota for concurrent executions. Use exponential backoff in the application. - a technique that uses progressively longer waits between retries for consecutive error responses. This can be used to handle throttling issues by preventing collision between simultaneous requests. Use a dead-letter queue - If you're using Amazon S3 and Amazon Cloudwatch events, configure your function with a dead letter queue to catch any events that are discarded due to constant throttles. This can protect your data if you're seeing significant throttling.
___________ is used to provide a fully managed, in-memory caching solution. This option is not the right way to handle errors due to high request rates.
DAX or DynamoDB Accelerator
A transcoding media service is being developed on Amazon Cloud. Photos uploaded to Amazon S3 will trigger a Lambda function. The Lambda function will cause the Step Functions to coordinate a series of processes that will do the image analysis tasks. The input of each function should be preserved on the result to conform to the application's logic flow. What should the developer do? A: Declare a ResultPath field filter on the Amazon States Language specification. B: Declare an InputPath field filter on the Amazon States Language specification. C: Declare an OutputPath field filter on the Amazon States Language specification. D: Declare a Parameters field filter on the Amazon States Language specification.
Declare a ResultPath field filter on the Amazon States Language specification.
You cannot configure Amazon Athena, AWS Lambda, and Amazon CloudFront on _____________
ElasticBeanstalk.
A developer is managing an Application Load Balancer that targets a Lambda function. The developer needs to obtain all values of identical query parameters key that is supplied in a request. How can the developer implement this? A: Decode the URL encoded query string values in the Lambda function. B: Replace the Application Load Balancer with a Classic Load Balancer and enable multi-value headers. C: Set a custom HTTP response header in the Lambda function. D: Enable the multi-value headers on the Application Load Balancer.
Enable the multi-value headers on the Application Load Balancer.
__________________ is the practice of encrypting plaintext data with a data key and then encrypting the data key under another key.
Envelope encryption
While Memcached provides sub-millisecond latency, it supports replication.
FALSE! DOES NOT SUPPORT REPLICAITON
Highly classified documents are regularly stored in an Elastic Block Store. These technical documents contain specifications about electronic products. There is a legal agreement that this information should never be public. You need to explore the capabilities of AWS KMS to improve the security of the data to comply with the strict policy. Which of the following will provide the MOST secure solution? A: Use a symmetric key for encryption and decryption. B: Generate a data key using a symmetric key. Then, encrypt data with the data key. C: Use a combination of symmetric and asymmetric encryption. Encrypt the data with a symmetric key and use the asymmetric private key to decrypt the data. D:Create a public key and a private key. Use the public key to encrypt the data and only use the private key for decryption.
Generate a data key using a symmetric key. Then, encrypt data with the data key.
Both the _______________ fields provide a way to manipulate JSON as it moves through your workflow
InputPath and Parameters
_______________ is the data about your instance that you can use to configure or manage the running instance. _______________ is divided into categories, for example, hostname, events, and security groups.
Instance metadata
A Step Functions execution receives a ________ text as input and passes that input to the first state in the workflow. Individual states receive JSON as input and usually pass JSON as output to the next state
JSON
______ is used to give flexibility to your queries against the DynamoDB table. _____ uses an alternative sort key aside from the original sort key defined at the creation of the table. Additionally, you cannot create an _____ on an existing table. It can only be added during the creation of a DynamoDB table.
LSI or Local Secondary Index
_______________ refers to the rejection of the Lambda function to invocation requests. At this event, the Lambda will return a throttling error exception which you need to handle. This happens because your current concurrency execution count is greater than your concurrency limit. ___________ is intended to protect your resources and downstream applications. Though Lambda automatically scales to accommodate your incoming traffic, your function can still be throttled for various reasons.
Lambda Throttling
_____________ enables you to select a portion of the state output to pass to the next state. This enables you to filter out unwanted information, and pass only the portion of JSON that you care about.
OutputPath
__________- enables you to pass a collection of key-value pairs, where the values are either static values that you define in your state machine definition, or that are selected from the input using a path.
Parameters field
___________________________________ means that your request rate is too high. The AWS SDKs for DynamoDB automatically retries requests that receive this exception. Your request is eventually successful unless your retry queue is too large to finish. To handle this error, you can reduce the frequency of requests using error retries and exponential backoff.
ProvisionedThroughputExceededException
__________ is the only service in Elasticache that supports replication.
Redis
A code that runs on a Lambda function performs a GetItem call from a DynamoDB table. The function runs three times every week. You noticed that the application kept receiving a ProvisionedThroughputExceededException error for 10 seconds most of the time. How should you handle this error? A: Enable DynamoDB Accelerator (DAX) to reduce response times from milliseconds to microseconds. B: Refactor the code in the Lambda function to optimize its performance. C: Create a Local Secondary Index (LSI) to the existing DynamoDB table to increase the provisioned throughput. D: Reduce the frequency of requests using error retries and exponential backoff.
Reduce the frequency of requests using error retries and exponential backoff.
_________ to control which combination of these is passed to the state output. ___________ field filter is the only one that can control input values and its previous results to be passed to the state output
ResultPath
A lead developer is looking for a way to decrease data retrieval latency from a MySQL database. The database is hosted on Amazon RDS. He wants to leverage AWS to implement a caching solution that supports Multi-AZ replication with sub-millisecond response times. What must the developer do that requires the LEAST amount of effort? A: Set up AWS Global Accelerator and integrate it with your application to improve overall performance. B: Set up an Elasticache for Memcached cluster between the application and database. Configure it to run with replication to achieve high availability. C: Set up an Elasticache for Redis cluster between the application and database. Configure it to run with replication to achieve high availability. D: Convert the database schema using the AWS Schema Conversion Tool and move the data to DynamoDB. Enable Amazon DynamoDB Accelerator (DAX).
Set up an Elasticache for Redis cluster between the application and database. Configure it to run with replication to achieve high availability.
____________ is a technique in modeling systems whose output depends on the entire history of their inputs, not just on the most recent input. In this case, the Lambda functions invoke one another, creating a large state machine.
State Machine
______________ are used in symmetric encryption, where the same key is used for encryption and decryption.
Symmetric keys
You don't have to change the schema of the MySQL database just to achieve a high performing, high availability caching solution. You can readily do that with Elasticache.
True
A serverless application consists of multiple Lambda Functions and a DynamoDB table. The application must be deployed by calling the CloudFormation APIs using AWS CLI. The CloudFormation template and the files containing the code for all the Lambda functions are located on a local computer. What should the Developer do to deploy the application? A: Use the aws cloudformation validate-template command and deploy using aws cloudformation deploy. B: Use the aws cloudformation deploy command. C: Use the aws cloudformation package command and deploy using aws cloudformation deploy. D: Use the aws cloudformation update-stack command and deploy using aws cloudformation deploy.
Use the aws cloudformation package command and deploy using aws cloudformation deploy.
What is DAX?
a fully managed in-memory cache for DynamoDB
Use this command to quickly upload local artifacts that might be required by your template. After you package your template's artifacts, run the _________________ to deploy the returned template.
aws cloudformation deploy command
The __________________ packages the local artifacts (local paths) that your AWS CloudFormation template references. The command uploads local artifacts, such as source code for an AWS Lambda function or a Swagger file for an AWS API Gateway REST API, to an S3 bucket. The command returns a copy of your template, replacing references to local artifacts with the S3 location where the command uploaded the artifacts.
aws cloudformation package command
this just updates an existing stack.
aws cloudformation update-stack command
______________- will just check the template if it is a valid JSON or YAML file.
aws validate-template command
The _____________ command describes the specified instances or all instances. Optionally, you can add parameters to the describe-instances to modify its function.
describe-instances
defines the total number of items to be returned in the command's output.
max-items