You are tasked with developing an application that requires the use of Oracle Cloud Infrastructure (OCI) APIs to POST messages to a stream in the OCI Streaming service. Which statement is incorrect? (Choose the best answer.)
A.
The request must include an authorization signing string including (but not limited to) x-content-sha256, content-type, and content-length headers.
B.
The Content-Type header must be set to application/json
C.
An HTTP 401 will be returned if the client's clock is skewed more than 5 minutes from the server's.
D.
The request does not require an Authorization header.
D
For PUT and POST requests (when there's content in the request body), the signing string must include at least these headers:
(request-target)
host
date or x-date (if both are included, Oracle uses x-date)
x-content-sha256 (except for Object Storage PUT requests; see the next section)
content-type
content-length
and the Authorization header.
D
To see why B and C are correct. See https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/usingapi.htm
A is also correct, while if you are missing the header a 401 Unauthorized response will be sent to the client. See https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/signingrequests.htm
You know an answer is from a bot if it cites no source nor argument
I think answer is D- I got practice exams from Udemy and in that answer is A, but when I read the article at oracle I found D must be the right answer:-
Summary of Signing Steps
In general, these are the steps required to sign a request:
Form the HTTPS request (SSL protocol TLS 1.2 is required).
Create the signing string, which is based on parts of the request.
Create the signature from the signing string, using your private key and the RSA-SHA256 algorithm.
Add the resulting signature and other required information to the Authorization header in the request.
See the remaining sections in this topic for details about these steps.
D, for sure.
The request 'does' require an Authorization header.
More details via the provided link
upvoted 3 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
mbanzai
Highly Voted 4 years, 6 months agoSaidasa
Most Recent 2 years, 11 months agoOsong
4 years, 5 months agofirstvishal
4 years, 6 months agoJatindra
4 years, 6 months agojuanclopez2011
1 year, 5 months agogfhbox0083
4 years, 7 months ago