निःशुल्क नमूना
AWS Certified Developer - Associate (DVA-C03)|模試
相馬学院 · उत्तीर्ण अंक 65% · 10प्र.
यह एक निःशुल्क नमूना है (पूरे पाठ्यक्रम में से 10 प्रश्न)। स्कोरिंग और कमज़ोरी विश्लेषण यहीं देखे जा सकते हैं।
सभी 6 सेट और हर प्रश्न की व्याख्या खरीदने पर अनलॉक हो जाती है।
सभी प्रश्न और व्याख्याएँ देखने के लिए खरीदें
प्र.1
/ 10
· Development with AWS Services
एक payments टीम API Gateway के पीछे Lambda पर एक REST endpoint चलाती है। एक downstream ledger service कभी-कभी redeploys के दौरान कुछ सेकंड के लिए HTTP 500 लौटाती है। टीम चाहती है कि function ledger पर दबाव डाले बिना transient failures को retry करे। कौन सा retry code सबसे उपयुक्त है?
while True: r = call_ledger() if r.ok: break # no delay
r = call_ledger( timeout=900) return r # just wait longer on a 500
r = cache.get("ledger") return r # return the last stale response always
for i in range(5): r = call_ledger() if r.ok: break sleep(2**i + random())
प्र.2
/ 10
· Security
एक bank customers को private S3 bucket से उनका monthly statement PDF download करने देती है। App को bucket को public बनाए बिना प्रत्येक customer को केवल उनके own object तक temporary direct access देना है। कौन सा SDK call सबसे उपयुक्त है?
s3.put_bucket_acl( Bucket=b, ACL="public-read") # make all statements public to anyone
url = s3.generate_presigned_url( "get_object", ExpiresIn=300, Params={"Bucket": b, "Key": k})
iam.create_access_key( UserName=customer) # issue long-lived keys per customer here
s3.put_bucket_website( Bucket=b, WebsiteConfiguration=cfg) # host the bucket publicly as a site
प्र.3
/ 10
· Testing and Deployment
एक team Docker image के रूप में patient-intake service package करती है और इसे AWS में store करना, scan करना, और old untagged images expire करने वाले rules apply करना चाहती है। कौन सी service और feature set उपयुक्त है?
Image को S3 bucket में plain object के रूप में upload करें जिसमें versioning on हो
Image को Amazon ECR पर push करें और image scanning और lifecycle rules configure करें
Image को AWS CodeCommit Git repository में binary file के रूप में store करें
Image को केवल developer के laptop पर local Docker cache में रखें
प्र.4
/ 10
· Troubleshooting and Optimization
Hospital API पर एक request API Gateway, दो Lambda functions, और DynamoDB को span करती है, और latency spikes को localize करना कठिन है। Team प्रत्येक hop में बिताए गए समय दिखाने वाला end-to-end trace चाहती है। कौन सी AWS service distributed tracing provide करती है?
Amazon S3 server access logs, जो bucket requests record करते हैं
AWS X-Ray, प्रत्येक service में tracing enabled के साथ
AWS Config recorder, जो resource configuration state track करता है
Amazon Athena federated queries, जो S3 में stored data query करती हैं
प्र.5
/ 10
· Development with AWS Services
एक bank चाहती है कि नए account-opening events तीन independent consumers को trigger करें: एक KYC check, एक welcome email, और एक analytics sink। प्रत्येक consumer को अपनी copy मिलनी चाहिए और अपने दम पर scale करना चाहिए। कौन सा design producer को तीनों consumers से सबसे cleanly decouple करता है?
Producer प्रत्येक event के लिए सभी तीन consumer APIs को synchronously, strict sequence में call करे
Event को एक shared SQS queue में लिखें जिसे तीनों consumers मिलकर poll करें
SNS topic पर publish करें और प्रत्येक consumer के लिए अलग SQS queue रखें
Event को एक DynamoDB item में store करें जिसे प्रत्येक consumer timer पर scan करे
प्र.6
/ 10
· Development with AWS Services
एक lending app के developer को EventBridge के माध्यम से एक routing rule pass करना है ताकि केवल mobile channel के loan events एक Lambda target तक पहुंचें। उस intent से मेल खाने वाला event pattern rule पर कौन सा है?
{ "source": [ "loans", "loans.mobile" ] }
{ "detail-type": [ "mobile", "loan event" ] }
{ "resources": [ "arn:aws", "mobile" ] }
{ "detail": { "channel": [ "mobile" ] } }
प्र.7
/ 10
· Development with AWS Services
एक insurance quoting service को तब भी responsive रहना चाहिए जब एक slow fraud-scoring call fail हो जाए। टीम एक circuit breaker जोड़ती है। जब breaker open हो, quoting code को gracefully degrade करने के लिए क्या करना चाहिए?
Fraud service के पूरी तरह recover होने तक request thread को block करें
बिना किसी attempt limit के fraud call को तुरंत retry करें
Conservative default score लौटाएं और quote को review के लिए flag करें
Unhandled exception throw करें ताकि पूरा quote request fail हो जाए
प्र.8
/ 10
· Development with AWS Services
एक developer को AWS SDK for Python के साथ DynamoDB में एक transaction amount store करना है और precision खोए बिना इसे वापस read करना है। कौन सा code value को सही तरीके से handle करता है?
item = {"id": tid, "amount": float(120.45)} # cast to a float table.put_item(Item=item)
from decimal import Decimal item = {"id": tid, "amount": Decimal("120.45")} table.put_item(Item=item)
item = {"id": tid, "amount": None} # store nothing here table.put_item(Item=item)
item = {"id": tid, "amount": round(120.45)} # round to integer table.put_item(Item=item)
प्र.9
/ 10
· Development with AWS Services
एक banking app DynamoDB में transactions store करती है। Reads अक्सर एक account के सभी transactions एक महीने के लिए time-ordered रूप में fetch करती हैं। कौन सा key schema इस access pattern को efficiently serve करता है?
--key-schema \ AttributeName=accountId,KeyType=HASH \ AttributeName=ts,KeyType=RANGE
--key-schema \ AttributeName=ts,KeyType=HASH
--key-schema \ AttributeName=uuid,KeyType=HASH \ AttributeName=accountId,KeyType=RANGE
--key-schema \ AttributeName=region,KeyType=HASH
प्र.10
/ 10
· Development with AWS Services
एक fraud dashboard एक account का risk tier प्रति सेकंड हजारों बार read करता है लेकिन value दिन में केवल कुछ बार बदलती है। Reads fast और cheap होनी चाहिए, और brief staleness acceptable है। कौन सा caching approach सबसे उपयुक्त है?
ElastiCache में risk tier को short TTL के साथ cache करें
प्रत्येक dashboard load पर strongly consistent DynamoDB read चलाएं
Risk tier को recompute करने के लिए प्रत्येक read पर पूरा table scan करें
सभी caching disable करें ताकि हर value हमेशा ताज़ा रहे
जमा करें