Q1. What type of relationship is defined as one resource existing only if another parent resource exist-for example, pages in a book?
-
Partial
-
dependent
-
associative
-
linked
-
/companies/{id} and/company
-
/company/{id} and/companies
-
/companies/{id} and/companies
-
/company/{id} and/company
-
data in the token
-
Ownership
-
a permission
-
and integer
Q4. Which REST contraint specifies that knowledge and understanding obtained from one component of the API should be generally applicable elsewhere in the API?
-
Uniform Interface
-
Client-Server
-
Stateless
-
Chacheable
-
HTTP
-
REST
-
OPTIONS
-
CORS
-
notify other systems of an event
-
catch error faster
-
improve error logging
-
log additional data
-
to add new technologies to an organization's infrastructure.
-
to share features and functionality with other system.
-
to move infrastructure to the cloud.
-
to appease the latest digital transformation effort.
-
bash
-
curl
-
ssh
-
powerShell
-
OpenAPI (Swagger)
-
WADL
-
WSDL
-
OAuth
Explanation: OpenAPI Specification
-
SUBMIT
-
WRITE
-
POST
-
CREATE
Explanation: HTTP request methods
-
Mobile app work better.
-
It improves uptime.
-
It offers better security.
-
It reduce load on servers.
Q12. Your API resource does no allow deletion, and a client application attempted to delete the resource. What HTTP respose code should you return?
-
409 Conflict
-
400 Bad Request
-
406 Not Acceptable
-
405 Method Not Allowed
Explanation: Response Codes
-
an identify layer on top of OAuth 2.0
-
the new name for SAML 3.0
-
a modern replacement for API keys
-
an SSO competitor for OAuth 2.0
Explanation: What is OpenID Connect?
-
flexible querying/responses
-
more stable APIs
-
compatible with more gateways
-
more secure by default
Explanation: GraphQL vs. REST
-
Stateless
-
Client-Server
-
Uniform Interface
-
Cacheable
-
It identifies the user ID.
-
It identifies the client application or SDK.
-
It identifies if the API should expect a user authentication.
-
It identifies if the API should accept microservice traffic.
Q17. If you were to add versioning by using the Accept and Content-Type header, what would be the correct format of the header value?
-
application/json
-
application/json_version2
-
text/html
-
application/vnd.myapp.v2+json
-
A token is encrypted.
-
A token is encoded.
-
A token is scoped to the use case.
-
A token can be shared between systems.
Explanation: How to easily secure your APIs with API keys and OAuth
Q19. The ability to execute the same API request over and over again without changing the resource's state is an example of _.
-
stateless architecture
-
idempotency
-
a uniform interface
-
cacheability
Q20. What component can you use to wrap legacy architectures or protocols into a REST interface for easier consumption and integration?
-
API proxy
-
API gateway
-
OpenAPI
-
OAuth authorization server
-
transport over SSL
-
encrypted payload
-
a signature
-
encoded payload
-
token
-
scope
-
claim
-
back channel
Explanation: OAuth Scopes
-
ID token
-
refresh token
-
access token
-
auth code token
Q24. What should you add to a Cache-Control response header to specify that a response should not be stored in an intermediary cache?
-
no-proxy
-
client-only
-
restricted
-
private
-
Authorization Code Grant
-
Client Credentials Grant
-
Implicit Grant
-
Authentication Grant
-
It varies from API to API.
-
admin
-
write
-
read-write
-
_embedded
-
resources
-
subresources
-
_links
-
tracking downloads
-
Accept headers
-
user agents
-
polling users
Q29. Which REST constraint allows for the presence of caching, routing, and other systems between the client and server?
-
Layered System
-
Stateless
-
Client-Server
-
Cacheable
-
your tech stack
-
reasoning for your naming schema
-
your mission statement
-
sample code
-
Response Time
-
Time to First Hello World
-
TTL
-
Uptime
-
GET /user/{id}
-
GET /users/{id}
-
GET /user?id={id}
-
GET /users?id={id}
-
to describe relationships between resources or actions
-
to describe subresources related to the current one
-
to link two resources together
-
to describe a resource and its purpose
- Java, Javascript, and .NET
- and you can support
- PHP, Python, and Go
- the languages that your target users use
-
resources
-
_embedded
-
subresources
-
_links
- an authorization framework for granted delegated access
- an approach to single sign-on for APIs
- a method for API authentication
- HTTP Basic Authentication 2.0
- JSON
- HTTP
- common use cases
- your tech stack
- to share user profile information
- to update an API configuration
- to keep a web session active
- to retrieve an access token
Explanation: Understanding Refresh Tokens
- how long it takes for a developer to do something with your API
- how long it takes to start a new programming language
- how long it takes to install your SDK
- how long it takes to read your documentation
Q40. Which response header tells the client and intermediaries that the response is not to be cached anywhere?
- Cache-State: none
- Expires:-1
- Cache-Control: no-cache
- Cache-Control: no-store
Q41. What component hides the distinctions or boundaries between various microservices from end-client applications?
-
API gateway
-
API logging
-
a layered system
-
API proxy
-
common knowledge
-
URLs
-
no versioning
-
the Accept header
-
URL parameter
-
Authorization header
-
Base64 encoding
-
Basic Auth
-
client
-
not specified
-
authorization server
-
resource server
-
inbound traffic
-
north-south traffic
-
internal traffic
-
east-west traffic
-
Add .json to the URL.
-
APIs do not use XML.
-
Use the Content-Type header.
-
Use the Accept header.
Q47. When a user attempts to access a record that is not their own, which HTTP response code is the most appropriate?
-
403
-
404
-
401
-
405
Explanation: Response Codes
-
HTTP verbs
-
JSON payloads
-
HTTP response codes
-
rate limiting/throttling
-
red team testing
-
white box testing
-
blue box testing
-
black box testing
-
PUT
-
POST
-
GET
-
OPTIONS
-
Expires: 1 minute
-
Cache-Control: max-age=60
-
Expires: 1 January 2020
-
Cache-Expires: max-age=60
Explanation: Cache Control Header
Q52. What is the concept that allows an API client to explore an API via links embedded in payloads?
-
hypermedia
-
link relations
-
parsing
-
browsing
-
200
-
201
-
204
-
202
Explanation: Response Codes
- AWS Lambda
- downloading open-source software
- Serverless
- JavaScript on a webpage
Explanation: Code on Demand
Q55. Which URL pattern should you follow for accessing a subresource attached to a specific resource?
- /companies/employees/{companyId}/{employeeId}
- /company/{companyId}/employees/{employeeId}
- /companies/{companyId}/employees/{employeeId}
- /companies/{companyId}/employee/{employeeId}
Explanation: Resource Naming
- Stateless
- Cacheable
- Layered System
- Uniform Interface